{extend name="layout/base"}

{block name="content"}
<iframe height="400rem" width="100%" src='{$brand.video_url}' frameborder=0 'allowfullscreen'></iframe>
<div class="content">
    <ul class="tab clearfix">
        <li class="active"><a href="javascript:;">企业介绍</a></li>
        <li><a href="javascript:;">最新资讯</a></li>
    </ul>
    <div class="brand-content">
        <div class="content-box active">
            <div class="container">
                {$brand.desc}
            </div>
        </div>
        <div class="content-box">
            <div class="container">
                <ul class="news-list">
                    {volist name="news" id="v"}
                    <li><a href="{:url('brand/news_info', ['id' => $v['id']])}">{$v.title}</a></li>
                    {/volist}
                </ul>
            </div>
        </div>
    </div>
</div>
<div class="fix-btn">
    <a class="all-btn" href="{:url('business/index', ['brand_id' => $brand['id']])}">全部商家</a>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
$(function() {

    $('.tab li').click(function() {
        $(this).addClass('active').siblings().removeClass('active');
        $('.brand-content .content-box').eq($(this).index()).addClass('active').siblings().removeClass('active');
    })
})
</script>
{/block}
